package com.xinqi.modules.exam.paper.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.exam.paper.domain.CourseExamPaperStatsEntity;
import com.xinqi.modules.exam.paper.dto.req.CourseExamPaperStatsCreateDTO;
import com.xinqi.modules.exam.paper.dto.req.CourseExamPaperStatsUpdateDTO;
import com.xinqi.modules.exam.paper.dto.rsp.CourseExamPaperStatsResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 课程测评统计转换
 *
 * @author: linkai
 * @date: 2023/07/02
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseExamPaperStatsConvert {
    public abstract CourseExamPaperStatsEntity create(CourseExamPaperStatsCreateDTO s);

    public abstract CourseExamPaperStatsEntity update(CourseExamPaperStatsUpdateDTO s, @MappingTarget CourseExamPaperStatsEntity t);

    public abstract CourseExamPaperStatsEntity update(CourseExamPaperStatsUpdateDTO s);

    public abstract CourseExamPaperStatsResultDTO convert(CourseExamPaperStatsEntity s);
}
